<?php

namespace  App\Http\Controllers\V1;

use App\Helpers\RestResponseFactory;
use App\Helpers\RestUtils;
use App\Http\Controllers\Controller;
use App\Models\Factory\SmsFactory;
use App\Models\Factory\UserFactory;
use App\Models\Orm\Wallet;
use App\Services\Core\Sms\Dahan\DahanService;
use Illuminate\Http\Request;
/**
 * Class GeetesController
 * @package App\Http\Controllers\V1
 * 短信
 */
class WalletController extends  Controller
{

    /**
     * 发送短信
     *
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function wallet(Request $request)
    {

        $data['wallet']=Wallet::orderBy(\DB::raw('RAND()'))
            ->take(1)
            ->get();
        return RestResponseFactory::ok($data,200);

    }
}